<!DOCTYPE html>
<html lang="zh-Hans">
<head>
    @import "mate.html"
    <title>农业后台系统1</title>
    <link rel="stylesheet" href="../assets/layui/css/layui.css">
    <link rel="stylesheet" href="../css/style.min.css">
</head>
<body class="body">
<div class="com-form-content">
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称：</label>
            <div class="layui-input-block">
                <input name="title" title="" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <select name="city" title="">
                    <option value="">请选择</option>
                    <option value="0">上架</option>
                    <option value="1">下架</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">项目描述：</label>
            <div class="layui-input-block">
                <textarea name="title" title="" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标UI：</label>
            <div class="layui-input-block">
                <input name="title" title="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">项目路径：</label>
            <div class="layui-input-block">
                <input name="title" title="" class="layui-input">
            </div>
        </div>
        <button id="form-submit" class="hidden" lay-submit lay-filter="form-submit"></button>
    </form>
</div>
@import "footer.html"
<script>
  $(function () {
    var form=layui.form;
    form.verify({
      Mark:[
        /^\w+$/,
        '只能输入英文,数字或者下划线哦！'
      ]
    });
    form.on('submit(form-submit)',function (data) {
      //业务逻辑（ajax）
      return false;
    });
  });
</script>
</body>
</html>